package com.tianji.learning.service;

import com.tianji.api.dto.leanring.LearningLessonDTO;
import com.tianji.learning.domain.dto.LearningRecordFormDTO;
import com.tianji.learning.domain.po.LearningRecord;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * 学习记录表 服务类
 * @author LYQ
 * @since 2024-06-22
 */
public interface ILearningRecordService extends IService<LearningRecord> {

    /**
     * 查询当前用户对应课程学习进度
     * @param courseId
     * @return
     */
    LearningLessonDTO queryLearningRecordByCourse(Long courseId);

    /**
     * 添加学习记录
     *  @param learningRecordFormDTO
     *
     */
    void addLearningRecord(LearningRecordFormDTO learningRecordFormDTO);
}
